package com.situ.mall.mapper;

import com.situ.mall.pojo.Product;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProductMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Product record);

    int insertSelective(Product record);

    Product selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Product record);

    int updateByPrimaryKey(Product record);

    // List<Product> selectByPage(@Param("offset") int offset,@Param("limit") Integer limit);
    List<Product> selectByPage();

    int selectTotalCount();

    List<Product> selectProductByCategoryId(Integer categoryId);
}